package com.yjd.comm.baseInfo.service;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.baseInfo.model.BannerModel;

/**
 * <b>description</b>：前台首页Banner业务接口<br>
 * <b>time</b>：2014-12-11 10:25:54 <br>
 * <b>author</b>：  percy-chen@hotmail.com
 */
public interface IBannerService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public BannerModel insert(BannerModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(BannerModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param banner_id
	 * @return
	 * @throws Exception
	 */
	public int delete(Long banner_id) throws Exception;

}
